import request from './index'

interface ApiResponse<T = unknown>{
    code: number,   // 状态码，200 表示成功
    message: string, // 登录成功后返回的消息
    data: T, // 登录成功后返回的数据
}

export const uploadImage = async (data: unknown) => {
    const result = await request.post('/file/upload', data,{
        headers: {
            'Content-Type': 'multipart/form-data',
        }
    })
    return result
}



